Dew Stats for .NET
|
Pairwise distance.
Calculates the pairwise distance for variables, stored in X.
Suppose we have collected 5 data points with 3 variables. The data matrix will look like:
Generated distance matrix has zero diagonal and is always symmetric. To calculate Euclidian distance between each pair of points, we use the following code:
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|